package com.hunt.service.impl;

import com.hunt.dao.CustomStockListMapper;
import com.hunt.model.entity.CustomStock;
import com.hunt.service.CustomStockListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomStockListServiceImpl implements CustomStockListService {

    @Autowired
    private CustomStockListMapper customStockListMapper;

    @Override
    public CustomStock findCustomStockListByUserId(String userId) {
        return customStockListMapper.findCustomStockListByUserId(userId);
    }

    @Override
    public void updateCustomStockList(String userId,String stockList) {
        customStockListMapper.updateCustomStockList(userId,stockList);

    }

    @Override
    public void insertCustomStockListByUserId(String userId, String stockList) {
        customStockListMapper.insertCustomStockListByUserId(userId, stockList);

    }
}
